/*
 * @Author: haoxiaoli 
 * @Date: 2022-03-08 19:52:10 
 * @Last Modified by: haoxiaoli
 * @Last Modified time: 2022-03-08 19:54:00
 */
export const currentTimeFormat = time => {
    if (time) {
        let sec = Math.floor(time % 60);
        let min = Math.floor(time / 60);
        return `${min > 9 ? min : '0' + min}:${sec > 9 ? sec : '0' + sec}`;
    } else {
        return '00:00';
    }
};